﻿using System;
using Framework.Remoting.Conventions;

namespace Framework.Remoting.Client
{
    public interface IRequest : IDisposable
    {
        T BeginRequest<T>(WcfServiceInfo wcfServiceInfo);
        void EndRequest<T>(T channel);
        object Invoke<T>(Func<T, object> fun, WcfServiceInfo wcfServiceInfo);
    }
}